Integrand size = 26, antiderivative size = 306 \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=-\frac {195 i \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{1024 \sqrt {2} a^{7/2} d}+\frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}}+\frac {65 i}{512 a^2 d (a+i a \tan (c+d x))^{3/2}}+\frac {195 i}{1024 a^3 d \sqrt {a+i a \tan (c+d x)}} \]
[Out]
Time = 0.21 (sec) , antiderivative size = 306, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3568, 44, 53, 65, 212} \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=-\frac {195 i \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{1024 \sqrt {2} a^{7/2} d}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {195 i}{1024 a^3 d \sqrt {a+i a \tan (c+d x)}}+\frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}+\frac {65 i}{512 a^2 d (a+i a \tan (c+d x))^{3/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}} \]
[In]
[Out]
Rule 44
Rule 53
Rule 65
Rule 212
Rule 3568
Rubi steps \begin{align*} \text {integral}& = -\frac {\left (i a^5\right ) \text {Subst}\left (\int \frac {1}{(a-x)^3 (a+x)^{13/2}} \, dx,x,i a \tan (c+d x)\right )}{d} \\ & = -\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {\left (15 i a^4\right ) \text {Subst}\left (\int \frac {1}{(a-x)^2 (a+x)^{13/2}} \, dx,x,i a \tan (c+d x)\right )}{8 d} \\ & = -\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}-\frac {\left (195 i a^3\right ) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{13/2}} \, dx,x,i a \tan (c+d x)\right )}{32 d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}-\frac {\left (195 i a^2\right ) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{11/2}} \, dx,x,i a \tan (c+d x)\right )}{64 d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}-\frac {(195 i a) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{9/2}} \, dx,x,i a \tan (c+d x)\right )}{128 d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}-\frac {(195 i) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{7/2}} \, dx,x,i a \tan (c+d x)\right )}{256 d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}}-\frac {(195 i) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{512 a d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}}+\frac {65 i}{512 a^2 d (a+i a \tan (c+d x))^{3/2}}-\frac {(195 i) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{1024 a^2 d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}}+\frac {65 i}{512 a^2 d (a+i a \tan (c+d x))^{3/2}}+\frac {195 i}{1024 a^3 d \sqrt {a+i a \tan (c+d x)}}-\frac {(195 i) \text {Subst}\left (\int \frac {1}{(a-x) \sqrt {a+x}} \, dx,x,i a \tan (c+d x)\right )}{2048 a^3 d} \\ & = \frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}}+\frac {65 i}{512 a^2 d (a+i a \tan (c+d x))^{3/2}}+\frac {195 i}{1024 a^3 d \sqrt {a+i a \tan (c+d x)}}-\frac {(195 i) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{1024 a^3 d} \\ & = -\frac {195 i \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{1024 \sqrt {2} a^{7/2} d}+\frac {195 i a^2}{352 d (a+i a \tan (c+d x))^{11/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{11/2}}-\frac {15 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{11/2}}+\frac {65 i a}{192 d (a+i a \tan (c+d x))^{9/2}}+\frac {195 i}{896 d (a+i a \tan (c+d x))^{7/2}}+\frac {39 i}{256 a d (a+i a \tan (c+d x))^{5/2}}+\frac {65 i}{512 a^2 d (a+i a \tan (c+d x))^{3/2}}+\frac {195 i}{1024 a^3 d \sqrt {a+i a \tan (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.72 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.17 \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\frac {i a^2 \operatorname {Hypergeometric2F1}\left (-\frac {11}{2},3,-\frac {9}{2},\frac {1}{2} (1+i \tan (c+d x))\right )}{44 d (a+i a \tan (c+d x))^{11/2}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1110 vs. \(2 (243 ) = 486\).
Time = 9.97 (sec) , antiderivative size = 1111, normalized size of antiderivative = 3.63
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 338, normalized size of antiderivative = 1.10 \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\frac {{\left (-45045 i \, \sqrt {\frac {1}{2}} a^{4} d \sqrt {\frac {1}{a^{7} d^{2}}} e^{\left (11 i \, d x + 11 i \, c\right )} \log \left (4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{4} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{4} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{7} d^{2}}} + a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) + 45045 i \, \sqrt {\frac {1}{2}} a^{4} d \sqrt {\frac {1}{a^{7} d^{2}}} e^{\left (11 i \, d x + 11 i \, c\right )} \log \left (-4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{4} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{4} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{7} d^{2}}} - a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) + \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (-462 i \, e^{\left (16 i \, d x + 16 i \, c\right )} - 7161 i \, e^{\left (14 i \, d x + 14 i \, c\right )} + 47413 i \, e^{\left (12 i \, d x + 12 i \, c\right )} + 78800 i \, e^{\left (10 i \, d x + 10 i \, c\right )} + 38512 i \, e^{\left (8 i \, d x + 8 i \, c\right )} + 19552 i \, e^{\left (6 i \, d x + 6 i \, c\right )} + 7184 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 1624 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 168 i\right )}\right )} e^{\left (-11 i \, d x - 11 i \, c\right )}}{473088 \, a^{4} d} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 249, normalized size of antiderivative = 0.81 \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\frac {i \, {\left (\frac {4 \, {\left (45045 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{7} - 150150 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{6} a + 96096 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{5} a^{2} + 27456 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{4} a^{3} + 18304 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a^{4} + 16640 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a^{5} + 17920 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{6} + 21504 \, a^{7}\right )}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {15}{2}} a^{2} - 4 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {13}{2}} a^{3} + 4 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {11}{2}} a^{4}} + \frac {45045 \, \sqrt {2} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right )}{a^{\frac {5}{2}}}\right )}}{946176 \, a d} \]
[In]
[Out]
\[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\int { \frac {\cos \left (d x + c\right )^{4}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^4}{{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{7/2}} \,d x \]
[In]
[Out]